/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.bank.service.impl;

import java.util.List;

import iaas.service.impl.BaseServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.bank.entity.ArticleCategory;
import com.wealth.bank.repository.ArticleCategoryDao;
import com.wealth.bank.service.IArticleCategoryService;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Component
public class ArticleCategoryServiceImpl extends BaseServiceImpl<ArticleCategory> implements IArticleCategoryService{

	@Autowired
	private ArticleCategoryDao articleCategoryDao;

	//根据分类状态查询
	@Override
	public List<ArticleCategory> findByCorpIdAndStatus(Long corpId,Integer status) {
		
		return articleCategoryDao.findByCorpIdAndStatus( corpId, status);
	}
	
}
